﻿@model TGBTech.Core.Models.DanhMuc.KhachHang

@{
    ViewBag.Title = "Create";
}

<div class="row">
    <div class="portlet box blue">
        <div class="portlet-title">
            <div class="caption">
                Thêm Khách hàng
            </div>
            <div class="tools">
                <button id="close" type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            </div>
        </div>
        <div class="portlet-body">
            @using (Html.BeginForm("Create", "KhachHang", FormMethod.Post, new { id = "formCreateKhachHang" }))
            {
                @Html.AntiForgeryToken()

                <div class="form-horizontal">
                    @Html.ValidationSummary(true)
                    <div class="form-body">
                        <div class="form-group">
                            <label class="col-md-3 control-label">Mã KH</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.Id, new { @class = "form-control", placeholder = "Mã khách hàng" })
                                @Html.ValidationMessageFor(model => model.Id)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Tên KH</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.Name, new { @class = "form-control", placeholder = "Tên khách hàng" })
                                @Html.ValidationMessageFor(model => model.Name)
                            </div>
                        </div>



                        <div class="form-group">
                            <label class="col-md-3 control-label">Địa chỉ</label>
                            <div class="col-md-9">
                                @Html.TextAreaFor(model => model.Address, new { @class = "form-control", placeholder = "Địa chỉ" })
                                @Html.ValidationMessageFor(model => model.Address)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Điện thoại</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.Phone, new { @class = "form-control", placeholder = "Điện thoại", id = "mask_number" })
                                @Html.ValidationMessageFor(model => model.Phone)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Fax</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.Fax, new { @class = "form-control", placeholder = "Fax" })
                                @Html.ValidationMessageFor(model => model.Fax)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">MST</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.MST, new { @class = "form-control", placeholder = "MST", id = "mask_number" })
                                @Html.ValidationMessageFor(model => model.MST)
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-offset-3 col-md-10">
                            <input type="submit" value="Thêm" class="btn blue" />
                        </div>
                    </div>
                </div>
            }
        </div>
    </div>
</div>
